﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Willson.JsbManager.Comm;
using Willson.JsbManager.Bll;
using Willson.JsbManager.BllEntity;

namespace Willson.JsbManager.UI
{
    public class GlobalClass
    {
        static public string GetMenuItemName(int menu_id)
        {
            return BLLFactory<BLLMenuInfo>.Instance.GetMenuItemName(menu_id);
        }

        static public string GetFormCaptionText(int menu_id)
        {
            string parentName = BLLFactory<BLLMenuInfo>.Instance.GetParentMenuName(menu_id);

            return string.Format("{0}[{1}]", parentName, GlobalClass.GetMenuItemName(menu_id));
        }
    }
}
